package com.example.websocket.controller;

import java.io.IOException;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.websocket.socketHandler.MyWebSocket;

@RestController
public class TestController {

	@GetMapping(value = "sendALl", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public Object getAddressList(String str) {

		try {
			MyWebSocket.sendInfo(str);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return "111";
	}
}
